// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_a.p_b;

import java.io.*;

// Referenced classes of package com.nnee.a.b:
//            f

public class cls_e
    implements cls_f
{

    public cls_e(File file) throws FileNotFoundException
    {
        a = null;
        b = null;
        a = file;
        if(file != null)
        {
            if(!file.isFile())
                throw new FileNotFoundException("File is not a normal file.");
            if(!file.canRead())
                throw new FileNotFoundException("File is not readable.");
            b = file.getName();
        }
    }

    public cls_e(String s, File file) throws FileNotFoundException
    {
        this(file);
        if(s != null)
            b = s;
    }

    public long a()
    {
        long l;
        if(a != null)
            l = a.length();
        else
            l = 0L;
        return l;
    }

    public String b()
    {
        String s;
        if(b == null)
            s = "noname";
        else
            s = b;
        return s;
    }

    public InputStream c()
    {
        Object obj=null;
        if(a != null)
			try {
				obj = new FileInputStream(a);
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		else
            obj = new ByteArrayInputStream(new byte[0]);
        return ((InputStream) (obj));
    }

    private File a;
    private String b;
}
